package com.cqrt.entity;



import com.cqrt.constant.RTTableTypeConstant;
import com.ty.basic.entity.CTyEntityBaseDO;
import com.ty.basic.util.TyOtype;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigInteger;


@Data
@Entity
@TyOtype(
        displayName = RTTableTypeConstant.TYPE_TEMPLATE_STATUS
)
@Table(name = "RT_PRJ_TEMPLATE_STATUS")
public class RTTemplateStatusDO extends CTyEntityBaseDO {

    /**
     * 主键 OID
     */
    @Id
    @Column(name = "oid", nullable = false)
    private BigInteger oid;

    @Column(name = "status", nullable = false)
    private String status;

    @Column(name = "template_id", nullable = false)
    private BigInteger templateId;

    @TyOtype(
            name = RTTableTypeConstant.TYPE_TEMPLATE_STATUS
    )
    @Column(name = "otype", length = 50)
    private String otype=RTTableTypeConstant.TYPE_TEMPLATE_STATUS;


}